package com.hyd.project;

import com.hyd.util.LoginUtil;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
/**
 * 登录界面
 * @author llf
 *
 */
public class LoginActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_login);
	}
	
	public void forget(View v){
		Intent intent = new Intent(LoginActivity.this,ForgetPasswordActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
	}
	
	public void register(View v){
		Intent intent = new Intent(LoginActivity.this,RegisterActivity.class);
		startActivity(intent);
		overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
	}
	
	public void Login(View v){
		LoginUtil.Login("18268935648", "123456", LoginActivity.this);
		Toast.makeText(LoginActivity.this, "成功登录", Toast.LENGTH_SHORT).show();
	}
	
	public void back(View v){
		finish();
		overridePendingTransition(android.R.anim.slide_in_left,
				android.R.anim.slide_out_right);
	}
}
